Long-term mortgage rates continued their upward climb on Thursday, hitting their highest level in almost four years.