(#22938) fix Windows tests for symbolic file modes

 - lower nibble must be set to 4 for Ruby to properly be able to return
   the file mode under Windows
Merge pull request #2053 from Iristyle/ticket/master/22938-fix-mode-test-windows

(#22938) fix Windows tests for symbolic file modes