Do not print to stderr if cgo linking succeeds after retry (#3187)

The rety logic introduced by 6ab73ec5b still emitted the stderr of the
failing compiler execution before the retry. Now, this output is cached
and only emitted if the retry also fails.
4 files changed