wrap dbsqlexec and dbsqlok in rb_thread_blocking_region for threading