lib: fix checking syntax of esm module
A internal function defaultGetFormat
was changed in https://github.com/nodejs/node/pull/37468. Update the call in check_syntax.js
accordingly.
Fixes: https://github.com/nodejs/node/issues/41189 Refs: https://github.com/nodejs/node/pull/37468