```
We need this exposed for BerkeleyBatch::Recover to be moved out.
```
Partial backport (7/11) of core [[https://github.com/bitcoin/bitcoin/pull/18918 | PR18918:]]:
https://github.com/bitcoin/bitcoin/pull/18918/commits/2741774214168eb287c7066d6823afe5e570381d
Depends on D8593.