[PATCH v2] Add checking num-threads of makedumpfile