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