Actually... this is just a guess... but I think the stress = more resin thing might be a reproductive issue. When it's exposed to stress, the plant tries harder to reproduce, thus creating more seeds and increasing the chance that its offspring might survive in a harsh environment. Only in the case that there are no males to pollinate, it overcompensates by making more resin.