gpulib: use more conservative loop detection

No match.