Refactor sun.security.provider.X509Factory cache access to avoid coarse-grained locking and reduce contention during certificate/CRL interning and parsing.
As per request in [the PR](https://github.com/openjdk/jdk/pull/22616#issuecomment-2524971845), re-visit "the initialisation and locking in this area, e.g. addToCache is a static synchronized method so very coarse locking." ------------- Commit messages: - 8345954: Revisit Class Initializers and Locking in X509TrustManagerImpl-switch back to existing helpers - 8345954: Revisit Class Initializers and Locking in X509TrustManagerImpl-minor cleanerup - Merge branch 'master' into 8345954 - 8345954: Revisit Class Initializers and Locking in X509TrustManagerImpl Changes: https://git.openjdk.org/jdk/pull/29181/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29181&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8345954 Stats: 66 lines in 1 file changed: 21 ins; 14 del; 31 mod Patch: https://git.openjdk.org/jdk/pull/29181.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/29181/head:pull/29181 PR: https://git.openjdk.org/jdk/pull/29181
