HDFS-5614: update FSPermissionChecker to handle snapshots correctly.