Utilizing mutex for input_thread instead of Win32 suspend/resume thread functions (for Unix compatibility).