lib: check SharedArrayBuffer availability in freeze_intrinsics.js
Upstreaming patch from https://github.com/electron/electron/pull/38571
We would like to be able to use --frozen-intrinsics
in the renderer process in Electron, which may not have SharedArrayBuffer
enabled due to Chromium security policies.