Fixes returning a lock(amqp.consumers) by value