MessageQueue: add method blockingPeek()