Clang side changes to support LLVM mutex refactor. This accompanies revision D4033, and should be submitted at the same time.
Fix some compilation errors on Linux.
During an atexit handler, std::mutex cannot be used. This revision addresses this by changing to a mutex which is safe for use during shutdown.
Clang side changes accompanying the LLVM mutex refactor