fn guard_restoration_from_stmt( hir: &Hir<'_>, stmt: &Stmt<'_>, seen: &mut BTreeSet<FunctionId>, ) -> Option<(VariableId, LockValue)>