gtask: don't use g_task_set_static_name() unless allowed
Need to check GLIB_VERSION_MIN_REQUIRED before inlining use of something newer.
Fixes #2805 (closed)
Need to check GLIB_VERSION_MIN_REQUIRED before inlining use of something newer.
Fixes #2805 (closed)