Check that we're not about to deadlock if the queue is full and we can't repeat-write.