prevent too many access to shared_ptr within a critical loop
https://github.com/KhronosGroup/glTF/issues/127