For what it's worth, I don't think it's physically possible to erase the bootloader. The worst you can do is set the top level of read protection in the option bytes, which is an irreversible operation that disables the debug interface completely. Do that and the chip is scrap.