[PATCH v4 06/30] riscv/Kconfig: enable HAVE_EXIT_THREAD for riscv