[capi-sig] Future-proof GIL release and regrab for error/warning support