added LockId() method and changed param to private in mong impl.
changed layout
changed param name.