Well, racing conditions and such are difficult to track down. It requires quite some experience and imagination – or lots of grinding. And success is not guaranteed, no matter how long and hard you try (I too had a few cases in the last 30 years which I never solved).
Looking at the code with a keen eye could reveal something. Or be a waste of time. You only know afterwards.