Fix some global non-const statics
Merge pull request #1248 from wmtan/FixSomeFrameworkStatics

Multithreading fixes -- Various statics in framework removed or made const.