socket: add support for TCP_CORK

Add support for TCP_CORK.  When the TCP_CORK option is set,
only full packets are sent.