net/jose: fix build with lld 18
With recent lld, the --version-script check in net/jose's meson.build
fails, causing it to erroneously use a -export-symbols-regex flag:
cc: error: unknown argument: '-export-symbols-regex=^jose_.*'
Fix this by adding --undefined-version to the meson check, so it
succeeds.
PR: 277905
Approved by: hdholm@alumni.iastate.edu (maintainer)
MFH: 2024Q1
(cherry picked from commit 142d074b14d2f69452f2468d801d9f5e0d2669ef)