ensure that jobs can't finish before the job counter is increased