script: provide scripts per-thread information

Expose new `wrk.threadid` and `wrk.nthreads` variables to the lua state of
each thread. These represent the thread id the lua state is running on, and
the total number of running threads, respectively.