[ASan/Win tests] Don't generate debug info where it is not needed

Otherwise it results in flaky tests