The TVTropes Trope Finder is where you can come to ask questions like "Do we have this one?" and "What's the trope about...?" Trying to rediscover a long lost show or other medium but need a little help? Head to Media Finder and try your luck there. Want to propose a new trope? You should be over at the Trope Launch Pad.
There are also a lot of cases where, for example, a good guy is hiding from the bad guys, and they almost discover him, but something else comes up to distract the bad guy. It's all build-up, no pay-off, and requires the audience knows something the character doesn't.
I don't know if the broader form will be more likely to have been named, or if it makes it too broad to be useful.

When protagonist is just about to solve the riddle or mystery but a small coincidence makes them not success. For example on Twin Peaks when agent Cooper wants to see Leland's golf sticks he doesn't know the body of Maddy Ferguson is lying next to the sticks and he never realises it because of sudden call from police radio. It's very upsetting trope I think;) But how is it called?
Edited by 77.115.128.241