net: guard tcp_set_keepalive() to tcp sockets