fn guard_activation_from_stmts( hir: &Hir<'_>, stmts: &[Stmt<'_>], seen: &mut BTreeSet<FunctionId>, ) -> Option<(VariableId, LockValue)>