CommonSpirit narrows third-quarter loss, cuts jobs