examples/performance-thread: fix return type of threads