`compile()` calls can sometimes be surprisingly slow (see `builtins_bind()` being implicated in https://github.com/jqlang/jq/issues/1411). We should avoid holding the GIL -- if it's needed during error callbacks (f/e), we should grab it only then.