fix call pthread_attr_destroy