Implement `map_mut` on the Option type

Closes #7394
auto merge of #7497 : alexcrichton/rust/issue-7394, r=huonw