cleanup use of visibility attributes in pthread_cancel.c