Fix an off-by-one in managed::refcount

This fixes a bug I accidentally introduced in #9922
auto merge of #9930 : alexcrichton/rust/refcount-tests, r=thestinger

This fixes a bug I accidentally introduced in #9922