Set keep-alive on all tcp sockets