Create cancel.c

pthread_cleanup_push() adds a cleanup on cancellation.
pthread_testcancel() establlishes a cancellation point. 
pthread_cleanup_pop() removes the cleanup stack function.