s3:idmap_tdb: use transactions in idmap_tdb_allocate_id()