curl: fix build with --disable-crypto-auth (#18838)