Make the test skip when the OpenSSL legacy provider is unavailable, and
locate the modules dir via `openssl info -modulesdir`.
---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK
Interim AI Policy](https://openjdk.org/legal/ai).
-------------
Commit messages:
- 8394613:
sun/security/pkcs12/KeytoolOpensslInteropTest.java#GenerateOpensslPKCS12 fails
when OpenSSL is built without the legacy provider
Changes: https://git.openjdk.org/jdk/pull/33380/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33380&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8394613
Stats: 29 lines in 1 file changed: 24 ins; 1 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/33380.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/33380/head:pull/33380
PR: https://git.openjdk.org/jdk/pull/33380