[PATCH v6 06/33] riscv/Kconfig: enable HAVE_EXIT_THREAD for riscv