Fixing buffer locking/unlocking code so that it does not leak memory and handles.
Fixing buffer locking/unlocking code so that it does not leak memory and handles.

sensics/OSVR-RenderManager,sensics/OSVR-RenderManager,sensics/OSVR-RenderManager