Add ns_connect_opt with support for tuning send buffer

This is the first example of an _opt function.
It's necessary because those sockopts can be set only before connecting.

The pattern shows the weekness of making it hard to specify defaults; in this case it's ok, instead of zero buffer size one could ask 1 byte.