Well i havent tried it myself but in theory it should work,and i havent seen this anywhere else.
OK here i go
First if you have a new iphone
restore to 1.1.3,jailbreak and activate your iphone with ziphone,than just downgrade your bootloader (if its 4.6) to 3.9
your iphone will not be unlocked yet.
Than download from installer anysim 1.3 and unlock your iphone.
This will give you a anysimed unlocked iphone(if you dont like ipsf like unlock methods)
P.S Its just a thought please dont flame me.