tdb: use tdb_nest_lock() for transaction lock.