How to emulate thread_local in llvm-ir? How to emulate thread_local in llvm-ir? multithreading multithreading