cmd/ld: avoid redundant external relocation calculations

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