[added to the 4.1 stable tree] alpha: fix crash if pthread_create races with signal delivery