Frequent-flyer schemes provide airlines with a lifeline