sock: break up sock_cmsg_snd into __sock_cmsg_snd and loop