tdb2: catch errors in tdb1_needs_recovery()