Significantly improve consolehook (Amiga console.device emulation) for headless/CLI use:
- Add thread-safe input ring buffer and input thread for non-blocking reads.
- Implement graceful shutdown of input thread on reset/quit.
- Allow custom root path via new `-cli[=path]` command-line option.
- Update emulation prefs for better compatibility and expand ROM selection.
- Normalize console output, add safety checks, and update API signatures.
- Export `set_console_input_mode` for Windows.
- Improve GitHub Actions workflow for Windows builds.
These changes make console emulation more robust, responsive, and configurable.