Renamed queueSem to queueLock