[SPARK-4064]NioBlockTransferService.fetchBlocks may cause spark to hang.

cc @rxin 
cc @aarondav since this will conflict with your change