tdb: cleanup: tdb_lock_list helper to cover tdb_lock and tdb_lock_nonblock