A positive surprise for Apple investors was buried in quarterly personal-computer data released Monday: The tech giant saw its biggest growth in Mac unit shipments in at least two years.