In a small engine it can take a good while to get that foam into the engine. Small doses and let it burn it up, then a bit more, a little at a time, it takes a while, a big V8 is another story. Not all engines can take that foam as fast as the can can dish it out.
Glad you found a good mechanic, that in itself can be a real accomplishment.