Common: Correctly set ptr to null if mmap fails in memory_util

On POSIX systems mmap will return MAP_FAILED (`(void*)-1`) and not a null pointer, so we ensure we set it accordingly (this was fixed upstream in Dolphin)