Remove a few non-const statics.
Merge pull request #959 from ktf/remove-statics-in-sim

Multithreading fixes -- Remove a few non-const statics.