HDFS-5595: fix handling of automatic mask calculation for filterAclEntriesByAclSpec.