Added gdk_thread_enter() and _leave() to glk_cancel_line_input(). Fix #38.