fix incorrect region code based on the old 'self

also removes unnecessary casts from the RcMut implementation
auto merge of #6337 : thestinger/rust/fix_region, r=thestinger

also removes unnecessary casts from the RcMut implementation