fix(ext/node): align nextTick ordering in ESM (#34085)
Closes #34052
This updates module evaluation so promise and `queueMicrotask` jobs
queued during top-level ESM evaluation run before `process.nextTick`,
matching Node ESM behavior. It also drains the nextTick queue at the end
of main CJS loading to preserve Node CJS entrypoint ordering.
Tests added for both ESM and CJS ordering.