The problem is that this is a theoretical scenario which rarely comes up in reality. The developers operating at the skill and maturity level where tracking their individual productivity and quality can be done well, generally are not the developers who really need these types of measures, and they usually aren't left grinding on the same domain for the years required to have enough data to do anything useful with it.
It is kind of a catch 22. The situations where tracking and gaining insight from KLOCs would help (mature/skilled devs working on the same thing over and over for years...doesn't happen much), are not the situations where it is most needed (projects with hundreds of relatively inexperienced/immature developers and managers)
The result is it is applied to disastrous effect in situations where immature managers glom onto it as a silver bullet for managing the unmanageable.