RavenDB-2842 DocumentLock should be taken into account when processing r...

...eplicated documents + processing replicated documents in batches