Windows: Don't test ispath on deleted file or dir

These are failing with "stat: operation not permitted (EPERM)". There may still be
file handles open so the unlinked file and removed directory cannot be stat-ed.
Merge pull request #6144 from tkelman/patch-2

Windows test failures in file.jl: "stat: operation not permitted (EPERM)"