perf(get-platform): Optimize some of the platform detection routines (#18638)
* perf(get-platform): Optimize some of the platform detection routines
1. Detect node support using `process.arch` rather than calling `getos`,
that will re-do openssl search
2. Look for openssl lib using readdir rather than launching child
process and quit on the first found library, rather then continuing
executing commands.
Together, those changes improve loading peroformance by 10-20ms on orm
comparison benchmarks.
* Use `os.machine` if available