tests: check for curl at runtime
Don't use the presence of curl at configure time to decide whether to run these tests when installed.
Instead of always respecting HAVE_CURL which makes no sense for the installed tests, simply check if curl is present at test runtime and skip if not.
Also remove HAVE_CURL from meson.build as this removes all users.