Use global interpreter lock (GIL) in OpenGLRenderer.

Closes LP:1349880, thanks Václav Šmilauer for the hint.