runtime: impose thread count limit

Actually working to stay within the limit could cause subtle deadlocks.
Crashing avoids the subtlety.

Fixes issue 4056.

R=golang-dev, r, dvyukov
CC=golang-dev
https://codereview.appspot.com/13037043