The threat of recession is making debt securities a safer bet, while the stock market is yet to price in those risks.