Despite not foreseeing a recession or bear market, Goldman Sachs will lay off about 2,500 people.