swrap: add error checking/cleanup to swrap_sendmsg_filter_cmsghdr()