I believe this is called the post-treatment bias. If the causal arrow goes (mother-baby) -> (child-friends) -> (adult-attachment) and you include the middle one, you have already controlled for the first, and the effect disappears. Learning about the first tells you very little more once you have learnt the second.
In statistics we call it "conditional independence", attachment style is independent from maternal relationship if we know childhood friendship outcomes.