[CRT] Implement thread/fiber safe support for MSVC and Clang-CL