when tdb_chainunlock() fails, print the tdb error that occured