tdb2: unify tdb1_chainlock et al. into tdb_chainlock