py,st3m: Redraw overlays more times after mode change
Mode switching interacts weirdly with overlay drawing. Overlays are rendered in-process, while mode change still occurs in the graphics task. Make sure that we don't end up with framebuffer getting cleared after rendering by queuing a few more frames to render and flushing the whole pipeline.