Don't rely too much on iterators.

The problem being, here, that remove_from_multi_timeout() might modify the list
before the iterator is passed to the erase() call.