test: Test for disabling wallet flags
test: Test for disabling wallet flags

Github-Pull: #24855
Rebased-From: 88376c623cff3602d04ec6c94a89552aefa20fa7

bitcoinknots/bitcoin,bitcoinknots/bitcoin,bitcoinknots/bitcoin,bitcoinknots/bitcoin,bitcoinknots/bitcoin