Bug 1023618 - Always call FlushRendering in the reftest harness.
Bug 913805 - Hold a lock on the RasterImage in ScaleRequest so that the srcFrame doesn't go away if we need to discard images to free up memory.
Re-land Bug 995603