iommu/arm-smmu: clean up use of `flags' in page table handling code