The average long-term U.S. mortgage rate edged lower after rising the previous two weeks.