In both my service tours, rifles/pistols were stored separately from their magazines. When issued, the first mag to come to hand was used. If a FTF or malfunction was noted, the mag was turned in for inspection and survey. No special emphasis was put on matching mags with individual weapons.
I imagine any US GI's who acquired foreign pistols would adopt the same philosophy...
Interchangeability of parts...part of our heritage...