[Bug 1194982] Segmentation fault with gcc 4.8.5 during pthread_cleanup_push and pthread_mutex_unlock