Previously, pthreads builds would set MEM_INIT_IN_WASM to false, but
also skip the XHR code, leading to no memory initializer at all.
Also fix the pthread_global_init test to use a pthread pool, since
it doesn't yield to the main thread after pthread_create.