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