The way you described it, it sounds like you might have some corrupted data in your register. I would suggest you to do perform export/import and see if problem persists.
Hi, Paul.
Sounds like you're talking about REST API. And that your are overwriting data with older values if B managed to read record before A finished to update it. Classic conflict resolution ...