[WPD] Fix crash during devirtualization in non-LTO mode due to anon globals (#237274)
When the WPD pass runs without LTO, it will construct a module summary
index for itself, which will cause a crash if there are multiple
anonymous globals in the module. This happens because the anonymous
globals will be assigned the same GUIDs by the AssignGUID pass, so there
will be multiple summaries associated with one GUID.