fix misspelled PTHREAD_CANCELED constant