ensure accessing cache->tcp_timeout atomically