If Redsn0w doesn't work, You can try any other safe method to unlock your iPhone 3GS. For example, You can get the remote unlocking service for an iPhone 3GS from Superunlockcodes.com This method of unlocking is safe, simple, affordable, quick and permanent. It doesn't require a jailbreak too.