recalculateConnectCandidates
Recompute the connect-candidate count from scratch and snapshot the finished and max-failcount state. This is the port of peer_list::recalculate_connect_candidates. Called whenever the finished state flips or the failcount threshold changes, since both alter which peers count.