netlink: Refine calculation of maximum-length attributes.