s3:idmap_tdb: give idmap_domain arg to idmap_tdb_allocate_id and use ctx->db