HDFS-7266. HDFS Peercache enabled check should not lock on object (awang via cmccabe)