[avalanche] Reuse code to fetch the processor's local proof during proof cleanup
Summary: Code reuse here may reduce future changeset errors and simplify patches that affect getLocalProof()
Test Plan:
ninja check check-functional
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D11879