Windows serial: Don't try to stop the wait thread if already stopped.
Windows serial: Tidier handling using a GLib mutex.
Windows serial: Document variables.
Windows serial: handle nesting of serial_thread_pause().
Windows serial: handle monitor thread shutdown in serial_thread_resume().
Windows serial: Mutex now no longer needs to be recursive.
Windows serial: use g_thread_yield() to avoid spinning when interrupted.