Revert "do install_dos() later, when coopthreads are initialized" This reverts commit af831991d36dca75ec6ce1b369e9d3bc0864b618. This caused conflicts with keyboard code in slang mode. And it is not needed now because early leavedos() no longer crash.