Prevent possible data race in access to PooledThread::_idle