locking: update validation to the new error formation