cmd/compile: do not set n.Type.Sym in typecheckdeftype
cmd/compile: do not set n.Type.Sym in typecheckdeftype

typecheckdef calls typecheckdeftype, which will also set n.Type.Sym,
causing duplicated work. So do not set n.Type.Sym in typecheckdeftype to
prevent this, and also keep populating n.Type info in one place make
more sense.

Change-Id: I62671babd750f9d5d0bbfcf8d7eecd2cc314c955
Reviewed-on: https://go-review.googlesource.com/c/go/+/179579
Run-TryBot: Cuong Manh Le <54b4457f1dff6823379654eb5867596497ba782f@gmail.com>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Matthew Dempsky <e56ac2c500064424afac424d4b5e53bd0570a731@google.com>
Reviewed-by: Robert Griesemer <a6752097faebf1f02d80107d77a9be009089afe3@golang.org>

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