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.