applypatch: add support for BML partitions

This actually uses the EMMC partition access code. In order for this
to work, the BML partition name is changed back to the block
device name (e.g. "boot" -> "/dev/block/bml9"), and the
BML_UNLOCK_ALL ioctl is called before writing.

Change-Id: I012f1eca0b486b7465ca38b5db1f513ee8a246ea
bmlutils: Fix "Backup/Restore recovery on some devices"

Restoring recovery ($ flash_image recovery) will write recovery also on
the boot partition.
This is because boot and recovery are the same on some samsung phones.
This should be disabled on some samsung phone, in which boot and
recovery are different, in order to restore recovery without overwrite
boot.

Change-Id: Ie96a539806e8e8f0e4fc785b9be5ec02df9c3580