Rename std::borrow to std::reference.

Fixes #11814
Remove double-use of logging.
Remove seldom-used std::reference functions.
auto merge of #11895 : xales/rust/libstd, r=alexcrichton

Fixes #11814