When the old entry in a collision is unreachable and hasn't connected successfully in the last 4 hours, it can only leave the collision set through the 40-minute ADDRMAN_TEST_WINDOW branch. Until then, if it's the only pending collision, no feeler connections are made at all.
This is a rare occurrence I ran into when I switched from dual-homed (IPv4 + Tor) to -onlynet=ipv4.
ThreadOpenConnections() repeatedly calls SelectTriedCollision(), which keeps returning the unreachable entry. Since its network is unreachable, the entry is skipped without making a connection. nTries eventually runs out without any feeler connections being made.
The same process repeats on subsequent feeler turns until ResolveCollisions() resolves the collision after ADDRMAN_TEST_WINDOW (40 minutes).
This PR passes the reachable networks to SelectTriedCollision(), so it only returns collisions whose to-be-evicted entry belongs to a reachable network.
If none of the pending collisions qualify, nothing is returned, and a regular feeler connection is made instead.
Another approach I considered 2 is to overwrite unreachable tried entries involved in a collision directly in ResolveCollisions().