MULE-7592: JMS caching-connection-factory doesn't close connections on redeploy

(cherry picked from commit 78f369d)