utils_gthread: do not make data into NULL before the source is destroyed