Nearly 150 Denny’s restaurants are scheduled to close by the end of 2025, marking the largest retrenchment in the chain’s history and underscoring the pressures facing traditional full-service diners.