HALF a century ago, the conventional wisdom was that having a child was the surest way to build a happy marriage. Women's magazines of that era promised that almost any marital problem could be resolved by embarking on parenthood. Once a child arrives, "we don't worry about this couple any more," an editor at Better Homes and Gardens enthused in 1944.