Simplify noncontiguous_like (#85518)
This removes the special casing for zero-dim tensors and also uses
indexing instead of manual stride manipulations.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/85518
Approved by: https://github.com/albanD