fix a bug in liboping that caused 100% cpu utilization in collectd (patch from #6337)