Added OpenGL object locking.
Merge pull request #36 from acowley/develop

OpenGL object locking