bug-22033: Fix for older Berkeley DB on RHEL 5, and general unconfirmed records DB robustness improvements