[PyTorch] Guard against self assignment in SymInt (#84375)
self assignment was broken, now it's not.
Differential Revision: [D39189342](https://our.internmc.facebook.com/intern/diff/D39189342/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/84375
Approved by: https://github.com/suo