Implement MTQueue::popBarrier needed for recursive, multi-threaded algorithms. Extend unit test accordingly.