[refactor] remove global mapBlockIndex access from parkblock RPC
Summary:
this also makes parkblock's code more consistent with the pattern present
in the invalidateblock RPC
Test Plan:
ninja check
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D6984