Correctly max_targets spread over num_threads

Previously we were off by +/- (max_targets % num_threads) targets per
scan