[backport] QueueIterator::remove throws UnsupportedOperationException