threads: CHECK-fail on threads started before forking