WASHINGTON — The Pentagon's effort to account for tens of thousands of Americans missing in action from foreign wars is so inept, mismanaged and wasteful that it risks descending from "dysfunction to total failure," according to an internal study suppressed by military officials.