yeah man its just to avoid these types of sticky situations! i know ive made mistakes like that before and it took a world of headache to get my phone back to the way it was. so we all learn our lessons. just something to keep in mind for the future.
but now that that's out of the way, were you able to find any solutions? i was under the impression that 3.1.3 couldn't be unlocked. which means you would have to downgrade back down to 3.1.2 and then jailbreak and unlock...