This reduces the number of lookups to one per COMDAT group, rather than one per symbol in a COMDAT group.
I'm hoping this one can be approved too, since it goes along with D44343. Any objections?
I feel like it would be good to have some kind of wasm::kInvalidIndex that we could use here and elsewhere. But thats a separate change.