Speedup next workunit

Working on #115: adds prefetching of workunits, ignore lists for already fetched, and more efficient lock switching using threads.  There are still some more optimizations that can be done (in a different pull request).