Fix AttributeError: 'crawl_infrastructure' object has no attribute '_threadpool' #3978