Afghanistan on track to be lost cause: general