This PR is inspired by sipa’s suggestion in #33464 (comment).
Outbound onion connections use distinct Tor circuits and appear unrelated externally. Sharing a network_id might allow correlation via addr caching behaviour (e.g., GetAddresses() responses), enabling an observer to link apparently distinct connections.
Changes proposed here assign each outbound onion connection a unique, deterministic network_id based on its destination address.
Unchanged:
- Inbound onion connections continue grouping (already linked through the same hidden service)
- Clearnet outbound connections continue grouping (already linked through the same source IP)