Patch 1 fixes a case where a sync object may already have been destroyed when the sync_obj_flush function is called. Patch 2 and 3 deal with non-root EGL masters. On current vmwgfx, trying to run EGL as a non-root user results in a kernel oops.