fix slow windows test (#49258)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/49258
Tested by adding
`time.sleep(3)
`
in SubProcess.run and see test print "test_inherit_tensor: SubProcess too slow"
Sample failure:
https://app.circleci.com/pipelines/github/pytorch/pytorch/249756/workflows/3605479e-1020-4325-9a4c-8bde5ae38262/jobs/9550663
Test Plan: Imported from OSS
Reviewed By: supriyar
Differential Revision: D25507209
Pulled By: agolynski
fbshipit-source-id: ec808f0f658d0fb4c8447f68ec5ceba2aa66b1b5