These four functions also need to be thread-safe, because they're called from scripts (which run in other threads) and access data that may be changed in the update/render thread (the skeleton joints).  See, for example, Avatar::getJointIndex.