cmd/ld, runtime/cgo: allow a symbol to be both cgo_export and cgo_import.
Fixes issue 4878.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7420052