perf tools: Call mutex/condvar functions when multi-threaded only

It's meaningless to use mutex/condvar when it's single threaded.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
1 file changed