egl: Rework ancillary buffer invalidation on eglSwapBuffers
Instead of threading magic flags down into swapbuffers handling, just assume control of the GL context and invalidate the Z/S attachments for the default framebuffer before swapping.
The first patch is a weird corner case I noticed while writing this, if anyone feels like playing spec lawyer.