Use O_CLOEXEC when using g_spawn_sync() in a thread

If not available, bump down to one thread by default.
trivial: Only print progress after the applications have been processed