memory.c: load_state: Correctly close the file handle to avoid a "too many open files" error after the user loads a state 16 times during an emulator run.