Unify lock kinds with the enum.