libs: gl: Fix a context leak when display_create_context failed