datapath: Introduce is_mask when serializing netlink attributes.