HDFS-7130. TestDataTransferKeepalive fails intermittently on Windows. Contributed by Chris Nauroth.

(cherry picked from commit b93d9603a25b6b93f67c69503130164eef047876)