Add TCPClient#getsockopt; test keepalive.