Correct lock bug (refs #4118)