buildman: Correct counting of build failures on retry