Nd.unlock and replication save conflict

HelloI’ve got an extremely strange problem. We are using document locking. When master server is down I’m getting replication conflicts on save.

Step by step:

  1. Document locking is on

  2. Master server is down

  3. queryModeChange contains code “Call nd.UnLock”

  4. When I press save (ctrl+s) I’m getting an error “Another copy of this document was saved while you were editing it. Save your changes also as a Save Conflict document?”

  5. Client 8.0.2

How can this be fixed?