Seems I have tried to unlock my 7650 too many times with the wrong unlock codes (my fault) and its blocked from any unlocking now

Its not all bad though, I have both a USB dongle and a serial cable + opening tool for my phone. Am I right in thinking I can re-flash the phone, put my IMIE back, then unlock the phone?

I just want to know if this is possible before I go and wipe my phone clean . I've run through the Nokia PC Suite backup first - so I shouldn't lose anything. Is flashing it possible, will it work, do the tools exist on the internet?