It's much easier to just free the real blacksmith from the sewers and not give the fake one a key, since the real one will reward you the weapon immediately when you meet him in the town in this case
I tried that, but the rat boss in the sewer wouldn't drop me the giant rat key until after I talked to the fake smith and brought them the smiths key.