tdb: fix recovery reuse after crash (from SAMBA)