Analyst: Apple lost $400M from unlocked phones