SERVER-10462 retry file deletes until the file is no longer being used by another process in testing on windows

(cherry picked from commit f9be10eccac4ce39ad64d84bd02916257f9a8ef6)