[Bug 31987] FindNextFile/DeleteFile loop fails for directories with many files