tsan.module_ctor symbol name can change with -funique-internal-linkage-names which is captured in this patch.
With option, -funique-internal-linkage-names, the name of tsan.module_ctor is actually tsan.module_ctor.__uniq.[0-9]+
The option -funique-internal-linkage-names adds a sufix (.uniq.[0-9]+) to every internal linkage function to keep the name unique in the final binary. tsan.module_ctor is one such function which has internal linkage. This function name is checked in ThreadSanitizer.cpp to make sure we don't insturment it with tsan_func_{entry,exit}. This patch makes sure we even check the name when -funique-internal-linakge-names is used.