Split raw_socket/2, adding raw_sockbuf/1.

Now there are two functions depending on whether the caller wants to extract the buffer with the socket or not.
Fixes the -spec for buffer_data.