Safer way to clean the thread pool: do it prior to forking.