core/anonymous-file: Support 0-sized files
There is nothing to allocate for a 0-sized files, and indeed posix_fallocate() will error out if the passed len isn't greater than 0.
Now that anonymous files are used to back the memory selection source, this fixes unsetting the selection when the screen is locked.