[backport] QueueIterator::remove throws UnsupportedOperationException

done