tdb: cleanup: tdb_have_extra_locks() helper