walletdb: encapsulate wallet-read state information into CWalletScanState