sanity assertion in thread_pool_for; make that an error return value at some point
Fix granularity computation
thread pool smoke test