Also move a couple of BitcoinABC functions into PeerManagerImpl because they require access to State
This is a partial backport of core#24543
https://github.com/bitcoin/bitcoin/pull/24543/commits/37ecaf3e7a028486a0a1c9b717e8eb4214215805
Depends on D14861