Threadsafety for avahi to fix travis