[avalanche] Make the peer hold a shared pointer to the proof
Doing so will make it possible to share the proof ownership while being
safe if the peer is deleted in the meantime.
ninja all check-all
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D9607