AS MORTGAGE defaults increased last year, the markets took unnerving turns. Panicked investors raced to buy Treasuries and sell securities that seemed to present risks.