[FIX] instrumentation to debug a deadlock probably due to a race condition in
the test cursor