feat(lock): implement item locking on edit

and unlock on close

SD-524