made gltexture class thread-safe with read/write lock