The text bd0d4ca43d85, as FreeBSD 11.4-RELEASE shipped it.
set cancelability state
pthread_setcanceltype(3) on FreeBSD now