wallet: Refactor WalletRescanReserver to use wallet reference
Summary: Backport of Core PR18601
Test Plan:
ninja all check-all
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D7519