[avalanche] Remove the invalid peers before the orphans rescan
Summary:
This makes it possible to pull back proofs with utxos that conflicted with these invalid peers.
Ref T1854.
Depends on D10370.
Test Plan:
ninja all check-all
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Subscribers: deadalnix
Maniphest Tasks: T1854
Differential Revision: https://reviews.bitcoinabc.org/D10383