runtime: handle runtime.Goexit during init

Fixes issue 5963.

R=golang-dev, dsymonds, dvyukov
CC=golang-dev
https://codereview.appspot.com/11879045