Refactored queues spinLocks