Bug 1083635. Part 7: Fix UpdateLayerTree to sync-decode images and flush pending notifications. r=mattwoodrow

--HG--
extra : rebase_source : d13f993c4dd1b868f47b6c79b39172bb40b3871c