Remove usage of slice_internals feature

This CL replaces the usage of the core::slice::memchr function with
calls to std::iter::position.

Test: m keystore2_unsafe_fuzzer
Test: TH
Bug: 267698452
Change-Id: I33cab09176d0ff02ce092e240e887ece98728915
1 file changed