[libc] Use cpp::Array instead of cpp::ArrayRef in memory/utils_test.

Building with address-sanitizer shows that using ArrayRef ends up
accessing a temporary outside its scope.

GitOrigin-RevId: 2a6ef2aecf2d75f410195cef14846348f33a24de
1 file changed