[PATCH v6 0/2] sf: Check protection before writing/erasing flash