[PATCH openEuler-5.10 11/56] tools lib: Adopt memchr_inv() from kernel