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