Add missing FlushCloseOutputFiles to CompileImage

Was causing DCHECK failure for gtest that generate app image. Test
is in followup CL.

Test: clean-oat-host && test-art-host

Bug: 34929159
Change-Id: Ie5db008a71a6313ff7dc749f7cc1ac21255efdd7
1 file changed