Adding thread-safe attribute read to SceneCache

This problem is mainly detected when the root location of scene caches have attributes. The root scene caches are returned by our SharedSceneCache mechanism and therefore parallel threads could be querying at same time.
Added a unit test to demonstrate that.
Merge pull request #263 from ldmoser/threadSafeAttributeReadSceneCache

Adding thread-safe attribute read to SceneCache