Rust deals with race conditions 100 times better than C. Have you tried it? Just because it can't guarantee that they never happen doesn't mean it isn't any better.
You can't solve this with a different programming language but you can definitely make bugs much less likely.
You can't solve this with a different programming language but you can definitely make bugs much less likely.