[SP-1571] PDI-12948 - deadlock when mixing pooled and non-pooled connections