Get rid of the pthread_cleanup_push/pop () calls.