socket_wrapper: add swrap_sendmsg_before/after helper functions