I've experienced this too. Make a small, functional change in Lua, but notice that the change is gone.
No reboots, no upgrades conducted.
My working theory is that if Freeswitch restarts (with a crash, or deliberate action) it reloads the `scripts` folder.