pkg state: fix pylint W0604

```
************* Module salt.states.pkg
W0604: 48,4: Using the global statement at the module level
```