Fixed rare race condition in ExecutionQueue.