gettime: handle pthread_create() failure