compat/mingw.c: Teach mingw_rename() to replace read-only files