4334: Convert "idle*" state to "down"
4310: Lock job before changing its state to failed.
4310: Qualify namespace of AlreadyLockedError
Merge branch '4310-lock-before-fail' closes #4310 (again)
Merge branch '4334-idle-star-is-down' closes #4334