Reimplemented MangaGet::ThreadPool using Rake::ThreadPool as a guide.