DRILL-1444: Fix cancel in C++ client library