Invalidate, rather than redraw, on Transform.set_child.

This prevents a redraw from unconditionally occuring when the
child is changed - we only want the change to occur if we're
not already in a redraw.