Forbid multiple operations with an item in batch write

Change-Id: I70dba3ef29ba6b7f6261d19131922cdb8f202421
Fixes-bug: 1308388
Merge "Forbid multiple operations with an item in batch write"