Implemented lock in sysfs