Internal Emscripten function.
MUSL pthread_t pthread_self(void). Returns thread_ptr global.
pthread_t pthread_self(void)