Mutex fix to not corrupt flash saving data