community/zlib-ng: fix rvv detection on riscv64
The sophgo 2042 (milk-v pioneer) has RVV 0.7.1 which is not fully compatible. Fix the RVV test.
Patch is adapted from: https://github.com/google/highway/pull/2127
Note that it only works on 64 bit RISC-V.