Fix for process forking Resque jobs causing SIGIOT segfault pthread_mutex_destroy errors.