tools/power turbostat: Add checks for failure of fgets() and fscanf()