maintenance: Add waiting for compilation

Wait for iorap.cmd.compiler to terminate, otherwise, the JobScheduler
will now be aware of the full span of time it takes to perform the
complete maintenance.

Bug: 150036585
Test: run maintenance and check the scheduler terminate after
the compilation is done.
Change-Id: Ia1caa72a1081e1181b5842c58c7a74dccc9b0d56
1 file changed