[PATCH 5.10 178/317] perf ui: Update use of pthread mutex