If the following two events happen:
- (likely) the automatic 10 initial connections are not made to all networks
- (unlikely) the network-specific logic kicks in almost immediately.
It is using exponential distribution with a mean of 5 minutes
(
rng.rand_exp_duration(EXTRA_NETWORK_PEER_INTERVAL)).
So if both happen, then the 11th connection may not be the expected private broadcast, but a network-specific connection.
Fix this by manually opening a connection to each network upfront.
Before filling addrman, because once addrman has addresses the manual
addnode connections will race with the automatic ones.
Fixes: #34387