Fix free lifetime vars in HashMap's iterators
auto merge of #17517 : pczarn/rust/hashmap-lifetimes, r=alexcrichton

Fixes #17500