Now class OpenGL inherits from Lockable.