Fix dialect factory thread pool