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