[l1-flash/eeprom] Add lock/unlock/eeprom helper routines