Backport HDFS-4200 from trunk: Reduce the size of synchronized sections in PacketResponder.

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