[PATCH v2 03/13] util: add stop/drain functions to thread pool