utils_gthread: Add new functions to pause/continue thread