rpc: gettxout fixups
rpc: gettxout fixups

Github-Pull: #24718
Rebased-From: 68a041dd12b3bfee1f8308cd3586dccd3efefed4

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