w32pthreads: Add pthread_once emulation