Adding forgotten pthread_detach