Extended concurrency protection

Extended to include mLights and mChildren of BaseObject3D. Note that
this changes the method signature of addLights() in BaseObject3D,
AMaterial and AAdvancedMaterial.