The text ad3c0ede822c, as FreeBSD 11.4-RELEASE shipped it.
add a cleanup function for thread exit
pthread_cleanup_push(3) on FreeBSD now