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

(cherry picked from commit a0bb5cf1debff797ccd4da471ce12663c17bfbfe)
5 files changed