tdb2: log a message on allocation failure in tdb_check()