Make non-const statics const or atomic
Remove unused variable
Removed LockService

LockService is not needed for the threaded-framework and has been removed from all configurations.
The GlobalMutex was only used by the LockService.
Merge pull request #1296 from wmtan/MoreThreadSafetyFixes

Multithreading fixes -- Declare more framework non-const statics const or atomic
Merge pull request #1302 from Dr15Jones/removeLockService

Multithreading fixes -- Removed LockService