Implement GetMaxSimultaneousThreads() on Emscripten and Windows.