Locking on a group. NOT as a whole

Currently, the lock is acquired globally. That is any group's delete and modify will be locked. Now, changed it to that particular group