userspace/libsinsp: use a cleaner algorithm for fallback memmem