[Bug 50771] msys2 unlink() fails on read-only files [needs CreateFile(FILE_WRITE_ATTRIBUTES)]