[#2486] Fix deleting of folders with read only files on Windows.