(__pthread_create_2_1): Remember whether thread is created detached