[KARAF-4607] Fix pooling scenarion with ldaps:// and default Sun provider

(cherry picked from commit efc5f2a2874a3adb92f3f8bd79c024ee4a01bb56)
3 files changed