[PATCH 6.6 018/145] riscv: Prevent a bad reference count on CPU nodes