write_riemann: enable TCP keepalive on network socket