pack attributes so the nla_len is correct