maintenance: Add a watchdog for compilation process.

Kill the compilation if it's timeout.

Bug: 151212317
Test: run the maintenance and check the process is killed after timeout.
Change-Id: Iaf228181db19ae8f5085208115b5f0ab65da02f7
1 file changed