RISC-V certainly doesn’t prevent this kind of thing but it does at least provide the opportunity for this kind of behavior to be challenged. Given anyone is free to manufacture a RISC-V processor it’s at least feasible another company could step in and provide a product that doesn’t do these things if that’s what the market demands.