Wait smarter for an empty connection pool.