Don't schedule class PeerManagerImpl's background tasks from its
constructor, but instead do that from a separate method,
StartScheduledTasks(), that can be called later at the end of startup,
after other things, such as the active chain, are initialzed.
Backport of [[https://github.com/bitcoin/bitcoin/pull/22577 | core#22577]].