Document level locking for the update-in-place case only.
Make document-level locking optional