BS-11381
When deleting an opened diagram, lock should not be released