x11: Clean up sacrificial GL context code. Check for failures, restore any previously-current context.