carta

pthread_cleanup_push(3) on FreeBSD

The text cca1a600d5f7, as FreeBSD 3.5.1-RELEASE, FreeBSD 3.5-RELEASE shipped it.

add a cleanup function for thread exit

pthread_cleanup_push(3) on FreeBSD now