fixed potential deadlock with PooledConnection
Merge branch 'master' into haxe3