A significant number of customers appear to be buying Apple Inc.’s popular iPhone with the intention of “unlocking” the device to use it outside the AT&T network, apparently putting a stream of recurring Apple revenue at risk.