The turmoil in the mortgage market is bringing echoes of the 2008 financial crisis, when credit markets froze in the face of plunging values on mortgage securities.