SetWalletFlag is unused.
Does not change any behavior
https://github.com/bitcoin/bitcoin/pull/17304/commits/0391aba52dcc33613295fd6099c804ac7134b063
---
Depends on D7152
Partial backport of Core [[https://github.com/bitcoin/bitcoin/pull/17304 | PR17304]]