partitionmanager: Unlock every block partitions during setup

For example, Super volumes are read-only by default.

Change-Id: I0fc144842e42177d715c968bd1ee79e1406dae59
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index e3d9a54..5772904 100755
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -303,6 +303,8 @@
 				Prepare_Super_Volume((*iter));
 		}
 
+		Unlock_Block_Partitions();
+
 		//Setup Apex before decryption
 		TWPartition* sys = PartitionManager.Find_Partition_By_Path(PartitionManager.Get_Android_Root_Path());
 		TWPartition* ven = PartitionManager.Find_Partition_By_Path("/vendor");
@@ -2838,8 +2840,6 @@
 
 	full_filename = path + "/" + filename;
 
-	Unlock_Block_Partitions();
-
 	gui_msg("image_flash_start=[IMAGE FLASH STARTED]");
 	gui_msg(Msg("img_to_flash=Image to flash: '{1}'")(full_filename));
 
@@ -3544,7 +3544,7 @@
 					continue;
 				}
 				if (ioctl(fd, BLKROSET, &OFF) == -1) {
-					LOGERR("Unable to unlock %s for flashing: %s\n", block_device.c_str());
+					LOGERR("Unable to unlock %s: %s\n", block_device.c_str());
 					continue;
 				}
 				close(fd);