Fixing #623, gl createSharedContext failing to restore current context thread local