Unified queue implementations

New MailboxQueue is templated on blocking and non-blocking MonitorType
implementations.