Fix MSVC build with LLVM_ENABLE_THREADS=OFF