https://github.com/bitcoin/bitcoin/pull/14453/commits/321decffa1fbf213462d97e5372bd0c4eeb99635
and
qa: Ensure wallet unload during walletpassphrase timeout
https://github.com/bitcoin/bitcoin/pull/14453/commits/8907df9e02ec47ef249a7422faa766f06aa01e94
---
Backport of Core [[https://github.com/bitcoin/bitcoin/pull/14453 | PR14453]]