The program's code unlocks a mutex that it never locked. When libcxx is built with debug (e.g., on stable branches) there is a crash on an assert that pthread_mutex_unlock succeeds. This change adds a patch for the problem. PR: 282727 Approved by: uzsolt