fix for Issue 11543 - multiple definition of std.regex with shared library

- Detect copy relocated ModuleInfos when checking for
  conflicting module definitions.

[Issue 11543](https://issues.dlang.org/show_bug.cgi?id=11543 "multiple definition of std.regex with shared library")