asyncio_posix.c: Fix race on asyncio_thread_id global variable