Make the frame switch stroke a barrier
Now the frame cannot switch until all the background strokes are
finished. Basically, we had this behavior from the very beginning,
though I wanted to get out of it, but it didn't work.
Fixes T3930
BUG:369191