Locking shared resources based on a combination of the selected agent and the job type?