Windows port: fix mysterious threading crash in creating llvm module and memory
manager. The cause of this is unclear, a mutex lock works around it.