Resolves a LockType by name.
Resolves a LockType by name.
Resolves a LockType by name.
Resolves a LockType by name. Compares built in LockTypes and if none matched delegates to byName.
Throws a NoSuchElementException if there's no LockType with the given name. In this case exception is preferred over returning an Option to be more conformant with the JobStatus enum type hierarchy.