PDI-12948 - deadlock when mixing pooled and non-pooled connections