The average 30-year mortgage rate has surged over the course of October, returning to highs last seen in the summer.