Not necessarily. Does the log write direct or is there flushing, batched kernel io, etc? (Just pulling shit out of thin air without knowing context)
Discussion
That is to say; *any* work can affect a race condition outcome. But that work may not be happening where you think it is, for all sorts of reasons.
Hard to make suggestions with no context but generated code and strace are good tools. Tricky if working within many layers of abstraction.