Move sys::refcount to managed::refcount

More progress on #2240
auto merge of #9922 : alexcrichton/rust/less-sys, r=thestinger

More progress on #2240