fix rare test failures when cleaning up TempDirectory instances on Windows