Layoffs are a brutal medicine when a firm teeters on collapse, used to save the whole enterprise. If the goal is survival, this prudence earns long-term stability.