Disable OpenGL support if the latter is thread safe.