Samsung’s record second-quarter earnings masked losses in its consumer-device businesses, making the Fold8 lineup more important to its Asia mobile strategy.