[5/n] Update test distribute path (#62520)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/62380
* update `test_distributed` function to call wheel install folder {sitepackages}/torch instead of build/ folder
* add IN_WHEEL_TEST to limit the change for linux CI GHA only
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62520
Test Plan: check if all ci workflows pass
Reviewed By: soulitzer
Differential Revision: D30070707
Pulled By: tktrungna
fbshipit-source-id: c45f07b7b54857dc8e78405714d6d5b864c30868