[avalanche] Add an accessor to the pending nodes count
Summary: This will be used to show some status in a new RPC.
Test Plan:
ninja check-avalanche
Reviewers: #bitcoin_abc, PiRK
Reviewed By: #bitcoin_abc, PiRK
Differential Revision: https://reviews.bitcoinabc.org/D11130