The text 5b764ed0f2f2, as FreeBSD 8.1-RELEASE shipped it.
wait for thread termination
pthread_join(3) on FreeBSD now