tdb: cleanup: tdb_release_extra_locks() helper