app: aboot: Wait for display shutdown to finish

Charger driver creates a thread that calls into display driver to show
charging screen, to make sure battery is getting enough current the charger
thread shuts down the display periodically and turns on only when power key
is presssed. There is a possibility of race condition when charger
thread is turning off the display at the same time main thread is trying
to turn the display on. To avoid the race condition wait on the main
thread while charger thread is performing display shutdown.

Change-Id: If6d278d83a9ed7fba11b9758f131d39927f0490c
1 file changed