allow job_set_waiting only on running jobs (action #1733)