Once your iPhone is unlocked, it should remain so unless you do a software update. Therefore, it is advisable to avoid doing software updates on your iPhone. Alternatively, you can choose a carrier that supports an unlocked iPhone.