Use reserve instead of resize for vector of threads