fixed race condition in u_pypy_thread_attach()