bugfix: discard_jobs_for_analysis_id() should only change the jobs that are _not_ involved in semaphores