frameworks: Display missing text on SimUnlockScreen

Display the complete text including attempts remaining to
unlock PIN on SimUnlockScreen if user entered incorrect PIN.
On some devices the display text is ellipsized when trying to
display on a single line.

Change-Id: Ica6ac53be1b9c24084ec0389461eb5550864a41a
fix potential memory leak

use fclose() before return.

Change-Id: I3ed193464cc0dc90e9935ae19162667ad367628b