If related to mail gateway, then most likely has been already fixed.
But without the steps, it quite difficult to debug an error on a version that old, just assuming.
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 ...