Average long-term U.S. mortgage rates rose this week for the second straight week.