As a new requirement, sqlite support should be optional. This PR aims to be only minimum/blocker changes for 0.21.
Potential follow-up PRs after this:
- Make BDB support optional
- Nicer error messages when user tries to load an unsupported wallet
- Don’t compile descriptor wallet code if sqlite disabled