Revert "udp: fix compilation when HAVE_PTHREAD_CANCEL isnt defined"