Make platform variable private

This makes it so that platform is not exposed as syspaths.platform.
Merge pull request #11048 from terminalmage/bsd-syspaths-fallback

Make platform variable private