[NFC][ThinLTO] Check that refs between split modules have the same GUID (#182982)
Right now, the GUIDs are computed from the names with the hash suffix.
Once we land [this
RFC](https://discourse.llvm.org/t/rfc-keep-globalvalue-guids-stable/84801),
we'll want to use the original symbol's GUID, and also ensure any refs
to such symbols (in the case of a split module) keep that GUID. This
test prepares that.
Note that an effect of the aforementioned RFC is that the GUIDs will be
different from the ones checked in the test (but will still be the same
wrt eachother)