Implement atomic operations for internal musl libc use for the JS arch.
Implement __wake and __wait musl libc internal futex operations for Emscripten.
Implement pthread_once() from musl.
Add test for pthread_once()