Improving MCJIT/RuntimeDyld thread safety