Merge pull request #8855 from gilles-peskine-arm/benchmark-ecdh-no-legacy

Remove most uses of MBEDTLS_ALLOW_PRIVATE_ACCESS in test programs