Bug 965317 - The mutexes must be created as globals which evaluate ahead...

... of any multithreaded operations.