[JBJCA-1200] CachedConnectionManager should only lock if needed