Enforce a maximum job depth to prevent run away job generation in
protocols.