OF-3177: Log root cause when TrustManager initialization fails
Ensure that the original exception and full stack trace are logged when TrustManager instantiation fails, instead of suppressing the error when trying to use the fallback mechanism.
OF-3175: Prevent deadlock when enumerating encrypted XML properties
Fix a potential deadlock in XMLProperties when getAllPropertyNames() encounters encrypted properties that may trigger rewrite or auto-upgrade logic.
The previous implementation iterated properties while holding a read-lock, but could indirectly attempt to acquire a write-lock (via decryption or encryption upgrade paths), resulting in a read→write lock upgrade deadlock during startup.
This change makes getAllPropertyNames() strictly read-only by separating name collection from any property access that could mutate state, ensuring no write-lock is attempted while the read-lock is held.
This resolves startup hangs observed when encrypted properties (e.g. LDAP credentials) are present.