Only collect garbage before exit-time temp cleanup on Windows (#64939)
`temp_cleanup_purge_all` runs a full GC at exit whenever a temporary path
is left, so that finalizers close files that Windows would otherwise refuse
to delete. b638381d23 made this unconditional. Elsewhere the collection
only delays exit: with a multi-GB heap it took more than 20 s, longer than
the 15 s Distributed's `kill` allows, so recycled test workers on aarch64
Linux CI were signalled, dumped core and failed the test run.
Restore the Windows-only GC from before b638381d23.