Make GLInject thread-safe.

This is probably unnecessary, but it's possible that some applications
want to use OpenGL simultaneously from multiple threads.