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

The test if failing because in line 41 the document can't be retrieved from Mongo, doesn't have anything to do with Elastic. all_updates variable value is None.