Changed locking per fiber to locking per Task in ConnectionPool.