RISC-V: fix taking the text_mutex twice during sifive errata patching