riscv: lib: Fix ZBB strnlen reading past count boundary (CVE-2026-74751) | HOL Guard CVE