a couple of minor optimizations in the sinsp capture loop