HDFS-4297. Fix issues related to datanode concurrent reading and writing on Windows. Contributed by Arpit Agarwal and Chuan Liu.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-trunk-win@1428606 13f79535-47bb-0310-9956-ffa450edef68