Fix file deletions to always use a delayed retry on windows, fixes #3074