Fix issue where _process_jobs_locally would not work with max_processes > 1