(#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