delete prop in restore when it's not own property of object

I found it can't set undefined to process.env

```
process.env.a = undefined
console.log(process.env.a); // show `undefined` it's string!!!
```