HDFS-7242. Code improvement for FSN#checkUnreadableBySuperuser. (Contributed by Yi Liu)

(cherry picked from commit 1c3ff0b7c892b9d70737c375fb6f4a6fc6dd6d81)