Changed stateQueueLock from AtomicState to LockState