target/riscv: Implement WARL behaviour for mcountinhibit/mcounteren