Wait for pending requests to finish in ImageDecoder.

Otherwise in slow/busy computing environments, image decoding may never
succeed / fail too frequently.

BUG=484915

Review URL: https://codereview.chromium.org/1129653002

Cr-Commit-Position: refs/heads/master@{#328916}
2 files changed