You can JB it on 3.0 with Redsnow or blackrain.
And then assuming you have untethered JB restore it to custom 3.1.3 with an IPSW created with pwnagetool.
Thus preserving an unlockable bootloader and JB along with a restored firmware that has none of your info on it.
Its a little involved.
If not just manually delete all your stuff from it like contacts, texts, email accounts, apps, log out of your itunes account etc...