Fixes https://github.com/espressif/esp-idf/issues/80
Avoid bug where a bad status read is copied back to flash and can set lock bits.