Fixing lock definition references.