A stock-market sell-off sent investors into bonds, lowering Treasury yields and dragging mortgage rates down.