threads: CHECK-fail on threads started before forking

Make sure we're not starting any threads before forking.  This doesn't catch anything now, but should be useful in the future.