cmd/compile: fix race on initializing Sym symFunc flag
cmd/compile: fix race on initializing Sym symFunc flag

SSA lowering can create PFUNC ONAME nodes when compiling method calls.
Since we generally initialize the node's Sym to a func when we set its
class to PFUNC, we did this here, too. Unfortunately, since SSA
compilation is concurrent, this can cause a race if two function
compilations try to initialize the same symbol.

Luckily, we don't need to do this at all, since we're actually just
wrapping an ONAME node around an existing Sym that's already marked as
a function symbol.

Fixes the linux-amd64-racecompile builder, which was broken by CL
147158.

Updates #27539.

Change-Id: I8ddfce6e66a08ce53998c5bfa6f5a423c1ffc1eb
Reviewed-on: https://go-review.googlesource.com/c/149158
Run-TryBot: Austin Clements <7ea35d812706d9213868749011af1ed4fa2f6aa0@google.com>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: David Chase <ae171625adc8645b8b79b7e405a6da5aba5341e0@google.com>

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