Revert D22898051: [pytorch][PR] Fix freeze_module pass for sharedtype
Test Plan: revert-hammer
Differential Revision:
D22898051 (https://github.com/pytorch/pytorch/commit/4665f3fc8d8ab797d916b312ca27d7abe6cde7b2)
Original commit changeset: 8b1d80f0eb40
fbshipit-source-id: 4dc0ba274282a157509db16df13269eed6cd5be9