fix queues mutexes, they were horribly wrong