carta

pthread_cleanup_push(3) on FreeBSD

The text f1a6217a1867, as FreeBSD 12.4-RELEASE shipped it.

add a cleanup function for thread exit

pthread_cleanup_push(3) on FreeBSD now