client: improve EGL context creation and use and match reset notification strategy when creating a shared context.