If It's Properly
Unlocked, there is no reason why it would lock itself, and should remain so.
I'm not sure where you live, but here in the UK my Apple purchased iphone4 will accept any sim and remains unlocked.
I know things are different across the pond, but can't see why just inserting a sim would lock the phone.
Just ensure you have removed all your personal stuff before you part with it🙂