Add as_unsafe_cell() for Cell and RefCell

Fixes #18131.
auto merge of #18212 : kmcallister/rust/unsafecell, r=thestinger

Fixes #18131.