Move the register-inplace special-case stuff into the ghc-prim package