test: speed up wallet unit test

bitcoin/bitcoin: PR #36832

The review is inconclusive; no findings were published.

Coverage details