HDFS-5642: define O_ACCMODE on Windows.