Enable tests using named temp files on Windows (#49640)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/49640
Reviewed By: ngimel
Differential Revision: D25681548
Pulled By: malfet
fbshipit-source-id: 0e2b25817c98d749920cb2b4079033a2ee8c1456