Mortgage rates have climbed sharply this year amid mounting concerns about inflation and U.S. debt.