Reset console in -DNDEBUG whdd-curses

assert(e) is a macro that does nothing if NDEBUG is defined.
Expression e is just dropped and atexit() isn't called.