[PATCH 6.1 v1] RISC-V: fix lock splat in riscv_cpufeature_patch_func()