Code discovered in Apple development builds suggests the iPhone could soon automatically lock itself during suspected theft attempts.