[REG2.064a] Issue 11081 - Win64: duplicate COMDAT with failed compilation with lambdas

http://d.puremagic.com/issues/show_bug.cgi?id=11081

This is more conservative fix than #2578.