Defend against truncated files in the filestore causing put_file to lock up.