Revert "Do not use unsafe restriding for subclasses (#87610)"
This reverts commit 73379acaf3865379aed0a1bab1320616772152f3.
Reverted https://github.com/pytorch/pytorch/pull/87610 on behalf of https://github.com/mehtanirav due to [Internal breakages](https://www.internalfb.com/intern/sandcastle/job/36028797828925790/insights)