Revert "Make generateLock static."

This reverts commit b1cecf9d6447de579434d6b3d81b536d5336b757.