The rising probability of the Democratic Party taking control of both houses of Congress in the midterm elections poses a “meaningful” threat to risk appetite, said Michael Hartnett, Bank of America’s chief equity strategist.