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