cmd/compile: emit symbol for constant string before parallel compiler phase
cmd/compile: emit symbol for constant string before parallel compiler phase

This CL makes sure we walk the newly generated assignment. Part of
that walk makes sure that all symbols for strings are emitted before
we start referencing them during the parallel compilation
phase. Without this change, those references during the parallel phase
do a create-if-not-exist, which leads to a data race.

I'm not 100% sure this is the fix for the issues below, but optimistically
assuming it is...

Fixes #28170
Fixes #28159

Change-Id: Ic63d5160ad9be5cb23fa6bbb2183e4848776c0ff
Reviewed-on: https://go-review.googlesource.com/c/141648
Run-TryBot: Keith Randall <8c99c3a9284e493be632950b84cd789d08ed3e9d@golang.org>
Reviewed-by: Josh Bleecher Snyder <cdc248cc4d32e4fbfe04e45228163bcecd48a0b9@gmail.com>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>

nawawi/go,nawawi/go,cloudflare/go,nawawi/go,CAFxX/go,cloudflare/go,akutz/go,josharian/go,golang/go,josharian/go,cloudflare/go,golang/go,golang/go,golang/go,CAFxX/go,nawawi/go,cloudflare/go,CAFxX/go,akutz/go,akutz/go,cloudflare/go,CAFxX/go,josharian/go,nawawi/go,akutz/go,josharian/go,akutz/go,golang/go,akutz/go,josharian/go,cloudflare/go,akutz/go,golang/go,josharian/go,josharian/go,nawawi/go,nawawi/go,CAFxX/go,CAFxX/go,akutz/go,CAFxX/go,josharian/go,golang/go,nawawi/go,cloudflare/go,cloudflare/go,CAFxX/go,golang/go