HDFS-5367. Restoring namenode storage locks namenode due to unnecessary fsimage write. Contributed by John Zhao.

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