utils: fix gl_create_context() with parent context set.