MDL-58684 files: Ensure stored_file never serializes the file_storage
MDL-58684 files: Ensure stored_file never serializes the file_storage

Magic methods __sleep and __wakeup used to properly store only the
file_record property and to reinit using get_file_storage().

dilawar/moodle