Aside from the absolute need to make sure you sign out of iMessage on your iPhone before you get rid of the device (so your friends still using iMessage will still be able to reach you using SMS), what is it about the Apple ecosystem that would lock you in that wouldn't be solved by using the iOS version of Google Drive to back up the iPhone before you sell it?