Add a test for issue #638.

Without the fix in #639, the test would fail with

    [47/169] BuildWithLogTest.RestatTest
    *** Failure in src/build_test.cc:1021
    Value of: builder_.status_->FormatProgressStatus("[%s/%t]")
      Actual: "[3/2]"
    Expected: "[3/3]"