[pytorch] Enable memory map file support for Android, Apple, and CXX (#88545)
Summary: See title. Left Windows out so it still compiles.
Test Plan:
Add a `#fail` below [this line](https://fburl.com/code/p0mlhlw4) and build for various platforms and confirm it fails which proves the `#ifdef` was hit.
```
buck2 build xplat/langtech/tuna/cli:tuclixAndroid
buck2 build xplat/langtech/tuna/cli:tuclix
```
CI/CD for the rest.
Differential Revision: D41054824
Pull Request resolved: https://github.com/pytorch/pytorch/pull/88545
Approved by: https://github.com/qihqi