What is a race condition? Give one you have actually seen.
Two threads read the same value, both decide based on it, and both write — so one update silently disappears. The classic shape is check-then-act: read a balance, confirm it is sufficient, subtract. Between the check and the act another thread does the same, and the account goes negative. Nothing in the code looks wrong, because the bug is in the gap between two correct statements.
The tell that it is a race and not a logic bug: it reproduces under load and vanishes under a debugger.