fix(test): run unit tests under Electron's Node to match native module ABI
postinstall compiles better-sqlite3 for Electron's ABI (143), but
test:unit was running via system node (ABI 137). Now uses
ELECTRON_RUN_AS_NODE=1 npx electron --test for all unit test scripts.
Also optimizes check-native-modules.js to try loading the module under
Electron's Node first, only running electron-rebuild on mismatch.