Run a synchronous function with a specific kernel as the default, then restore the previous default.
Warning: Do NOT pass an async function — the kernel override is
restored synchronously in finally, so any getKernel() call after
the first await inside fn would observe the wrong kernel.
brepjs — Public API