xepoll_thread_spawn: fix race condition with acceptors