Fix a race condition if two emscripten.py instances run at the same time