restored components for item autosave and lock; assign task on item lock

The name `clear` is not really meaningfull, maybe use `remove` or `delete`?