After this call, it is safe to unref the task and clean up the lock set with
The task will automatically be stopped with this call.
This function cannot be called from within a task function as this would cause a deadlock. The function will detect this and print a g_warning.
true if the task could be joined. MT safe.