First version of query direct context switching.
Fixing waiting bug, removing future queue.
Dirty hack to specialize the priv_queue closure.

This means that it doesn't have to go through libffi, because
we know exactly what the function being called is.

This saves an ffi_call invocation on queries, bringing it from
2 to 1.
Adding condition variable benchmark.