Fix crash due to invalid opengl context from bad multi-threading