load_m_file_data.m: prevent horse-race condition when saving and loading mat file

Johannes Pfeifer requested to merge JohannesPfeifer/dseries:load into master

Should prevent spurious testsuite crashes as in https://git.dynare.org/Dynare/dynare/-/jobs/36592

Merge request reports