HDFS-7494. Checking of closed in DFSInputStream#pread() should be protected by synchronization (Ted Yu via Colin P. McCabe)
(cherry picked from commit a97a1e73177974cff8afafad6ca43a96563f3c61)