If the phone has been officially unlocked, then you will not lose the unlock. Official unlock means the carrier that the phone was locked to authorized the unlock, or you purchased the phone unlocked. A reset does not affect anything like data or activation. All that does is reset the phone. A restore could affect the phone if it is not officially unlocked. The reset does not affect data in any way, however, a restore will erase all data. Restoring from a backup will put data back, a restore as new will clear the phone completely, You would have to sync your data back. Make sure you have made a backup, synced all of the data to a supported application, and imported all of the photos in the camera roll. The restore as new will also delete all SMS and game data saves.