[PATCH v2 05/17] riscv: Fix extension subset checking