ldb_tdb: Improve logging on unique index violation