Remove dead code (#111207)
This dictionary is not used anywhere. The _make_dupe_guard function does
not exist anymore
Pull Request resolved: https://github.com/pytorch/pytorch/pull/111207
Approved by: https://github.com/Skylion007, https://github.com/voznesenskym