I read thru to about page 11 and haven't seen it mentioned here; although i have elsewhere. The capitate glands are obviously highest in efficiency at capturing uvb. Not all plants have high thc levels.
Stickiness in plants' glandular production is associated with insect and small mammal repellent. mice would love to eat those seeds as would birds and insects.
Contact causing a stickiness can be death to an insect, and a lot of discomfort to a bird; or, any other small animal. Notably the resin is NOT water soluble; which indicates it's meant to stay there; and be more or less permanent to anything it touches.
That makes one of the primary functions almost certainly predator repellent.
Another aspect of glands: not all having thc; could be a locally reinforced genetic reaction to browsing animals. Several plants have intoxicants in their resins/sap.
There's only one reason to actively put an intoxicant into something surrounding a seed bract: deter the animal eating the seeds, from completing a thorough chewing up, cracking - and destruction of the seeds themselves. Animals/birds that adapt to the stickiness problem: very large birds, or larger browsing mammals: which become intoxicated by ingestion of thc are less likely to chew thoroughly; more likely to swallow mouthfulls of incompletely chewed up bract; also less likely to consume as massive quantities as they otherwise might be able. THC gets dogs, people cats, high, that ii know of; and i'll bet, it intoxicates other mammals too; probably birds as well.
A deer or other browsing creature coming up to a stand of hemp; might be more likely to browse in a less thorough fashion if intoxicated; thereby not being able to systematically strip any particular plant completely clean of flowers. It also would be more likely to chew less; and swallow more whole seeds: thereby spreading those seeds.
The manufacture of the thc is more than likely part of the resinous repellent program; the resin itself having such strongly binding qualities designed to stick to any small creature first: insects have their mobility denied; maybe even the ability to open the jaw; small creatures stop to groom the sticky stuff off, or avoid the bracts altogether: lessening predation time; the intoxicant therein can disorient anything that braves the stickiness; contributing to less systematic destruction of individual seeds ingested, thereby less complete genetic pool eradication; less thorough chewing - swallowing whole seeds to be dropped & replanted thru dung - survival and indeed genetic expansion response.
Most deterrent processes are ingeniously simple in their mechanical interaction with their environment; the chemistry i'm not so interested in commenting on, because there hasn't been enough time in high grade laboratories to examine all the aspects of resin function. It's probably quite varied, involving the manufacture and reception of hormonal triggers as well as the various intoxicants sometimes found in hemp.
Just thoughts.