tdb: use tdb_nest_lock() for active lock.