I am not sure you can modify an existing lock description. As far as I know, a lock is created by using IWorkspaceManger#applyLockOperations. I think you can start digging from here.
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means.
Learn more here.