A flattening of the yield curve and intensifying pressure in the primary market played major roles in squeezing profits for many mortgage lenders in the second quarter of 2005, according to a new analysis by Lehman Brothers. And the Wall Street firm doesn’t expect to see major changes in the economic environment over the rest of the year, although overly aggressive pricing in the subprime market may ease up some. Lehman held to its “neutral