Microsoft’s struggling smartphone business has a silver lining