attemping to solve producer/consumer mutex problem of messages being stuck on work queue when not listening on condvar