No, user B will receive error 409 instead, since the RPM will no longer match. For user B to lock his document, he will need to update the document so that he can get the latest version of the document.
This is called Optimistic Blocking and is specifically designed to prevent the problem you are seeing.
B User A, , _rev.