Reset partition flags when the partition is wiped

Change-Id: I6c4cee5b038fd0c39c8723412dd8f421f7794a00
Merge "Reset partition flags when the partition is wiped" into jb-wip