Implemented a thread-safe ThreadedQueue::pop() call and made push() thread-safe using the existing mutex lock