How apply the parent's transformations on an object without add it as child?

Instead of doing B.updateMatrixWorld();, try it with B.updateWorldMatrix( true, false );. Notice the different method name.