[PATCH v7 04/32] riscv: Add support for per-thread envcfg CSR values