fs: add attr_flags_to_mnt_flags helper