s3:idmap_tdb: move definition of struct idmap_tdb_context up.