don't test umask on windows
Don't chown on windows
add noop set_mode for Windows
Don't try fstat if on Windows
Merge pull request #9656 from UtahDave/develop

Fix improper usage of "mode" on windows. ignore mode, plz