And use it to make wait_for_proof more useful in the functional tests, as well as cleaning some cases in abc_p2p_avalanche_proof_voting.py.
This will make debugging and testing more convenient.
The "finalized: true" case is covered in the abc_p2p_avalanche_proof_voting test, so I didn't duplicate the rpc test to keep it simple.
Depends on D11808.