I try and stay in a position where I can make a glide in if the engine quits ...
To date, the closest I have come, is the engine quitting with the student who flew the plane right after me, but ...
If there is someone in the pattern who is flying wide/long patterns, I deal with it by slowing right down, then turning base as I pass abeam them when they are coming in on final. That usually gives enough spacing, and saves me from having to fly too far out.