[FX] Fix uses not updating when erasing a node (#47720)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/47720
Test Plan: Imported from OSS
Reviewed By: zdevito
Differential Revision: D24875880
Pulled By: jamesr66a
fbshipit-source-id: aae9ffd10f8085b599e7923152287c6e6950ff49