Prevent CME's while generating trees from plugins, buckets, and saplings.

Fixes #674, #826