HDFS-5614: refactor redundant assertions.
HDFS-5614: test restarting both with and without saving new checkpoint.
HDFS-5614: fix handling of ACLs in directory diffs.