Fix example usage of threadpool.