std: Restore dynamic borrow tracking
auto merge of #8463 : brson/rust/borrowck, r=nikomatsakis

r? @nikomatsakis