Optimize dequeue(), hasMessages() & numberOfMessages() implementation of mailboxes for Akka