Fix unsynchronized accesses in IOThreadPoolExecutor::getEventBase