Fix ITT unit-tests if PyTorch is compiled with `USE_ITT=OFF` (#86199)
Fixes https://github.com/pytorch/pytorch/pull/84848#discussion_r986329680
@malfet @slgong-fb
Pull Request resolved: https://github.com/pytorch/pytorch/pull/86199
Approved by: https://github.com/malfet