The Backdoor key command is recommended, it unlocks the MCU without a need to reprogram anything, The MCU is then secure again after a reset.
Reprogramming the Flash configuration field is not recommended.
You would need to
1. Save the first sector somewhere
2. Erase the first sector (including the vector table)
3. Program the Flash configuration field (to unsecure) and put all the erased data back.
4. Reset the MCU
There is a risk that something goes wrong during the re-programming (e.g. the MCU gets reset during the process).
Also, to secure the MCU, you would need to do all the steps again.
Regards,
Daniel