Back up your phone in iTunes. Then after you jailbreak and unlock you simply sync with iTunes from your back up and all will be recovered.
Any jailbroken apps and tweaks will be removed if you are now jailbroken. You should make a list then and re-install them.