nf_logid: simplify using builtin textsearch

Simplify nf_logid by removing the custom text search function and
instead use the textsearch functions included with Linux
(linux/textsearch.h).