pkg state: fix pylint W0604

************* Module salt.states.pkg
W0604: 48,4: Using the global statement at the module level
Merge pull request #5236 from cvrebert/patch-2

pkg state: fix pylint W0604