Will flashing re-lock my unlocked phone
No, flashing a ROM on your unlocked phone will not re-lock your device.  I have several unlocked phones which I flash ROMs on to without any issues.  The SIM code which operators use to limit what SIM cards will work in your device has nothing to do with the software running on that device.