ANDROID: ARM: add option to flush console before reboot

If the console_lock was held while the system was rebooted, the messages
in the temporary logbuffer would not have propogated to all the console
drivers.

This force releases the console lock if it failed to be acquired.

Signed-off-by: Dima Zavin <dima@android.com>

Bug: None
Patchset: arm-flush-console-on-reboot

Signed-off-by: Mattias Nissler <mnissler@google.com>
Change-Id: I76b279e77394f10932ddcd744ecc2ead300c0382
2 files changed