pthread_atfork problems