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