Use libmisc_writer in custom recovery UI

We have moved the functions to write the vendor space misc partition to a
new library. Switch the recovery UI library over to use the library.

Also fix a few lint errors.

Bug: 131775112
Test: build and boot into recovery
Change-Id: Ided86024f885f628c8edb1cee266e6296bb14f8b
2 files changed