Stop using transmute_mut in RefCell

This is supposedly undefined behavior now that Unsafe exists, so we'll
use Cell instead.
auto merge of #13419 : sfackler/rust/refcell-ub, r=huonw

This is supposedly undefined behavior now that Unsafe exists, so we'll
use Cell instead.