Generalise get_queues a bit to support ORing of access control.