make TensorImpl::data_ptr_impl() non-const and have mutable in the name (#97744)
See D44409928.
Differential Revision: [D44450468](https://our.internmc.facebook.com/intern/diff/D44450468/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/97744
Approved by: https://github.com/ezyang