PriorityQueue: add blocking versions for remove and peek functions