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

This  should be moved after `if search_backend is not None:`, otherwise we do an unneeded lookup for each update if the resource doesn't have search backend.