cmdline: make callbacks static
simple-async: make callbacks static
scanner: make callbacks static
scanner: remove redundant g_thread_exit()