carta

pthread_cleanup_push(3) on FreeBSD

The text 67668695f6a1, as FreeBSD 10.3-RELEASE shipped it.

add a cleanup function for thread exit

pthread_cleanup_push(3) on FreeBSD now