runtime: fix false positive deadlock when using runtime.Goexit
Fixes issue 4893.
Actually it's fixed by cl/7314062 (improved scheduler),
just submitting the test.

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