ZODB Components: Module globals disappeared while executing a function and another thread perform a reset.

TODO-BEFORE-MERGE: Comments and add further information in commit message.