China goes all-out to avoid mass layoffs