tdb2: fix tdb_chainlock