cmd/gc: elide self-assignment during return

More efficient, less racy code.

Fixes issue 4014.

R=ken2, ken
CC=golang-dev
https://codereview.appspot.com/7275047