Fix socket_set_option() invocations
Hardcode SocketImpl::$BSD
Prevent I/O on disconnected sockets
Rewrite tests to use Socket class