client: add method to configure thread pool