A wrapper around HotQueue that sleeps if the queue reaches a certain size