[PATCH v3 03/29] riscv/Kconfig: enable HAVE_EXIT_THREAD for riscv