Close file handle before returning

Not closing the file handle here was causing Salt to keep a lock on the
file on Windows minions since the minion thread is long-lived.
Merge pull request #11683 from UtahDave/develop

Close file handle before returning
Fix white-space lint issue.
there is a guard check to make this safe
Merge pull request #11684 from s0undt3ch/develop

Fix white-space lint issue.
try tightening up pylint ignores
Avoid shadowing vars() built-in func in modules.openbsdservice._get_rc()

************* Module salt.modules.openbsdservice
salt/modules/openbsdservice.py:144: [W0622(redefined-builtin), _get_rc] Redefining built-in 'vars'
Merge pull request #11686 from hulu/vars-shadowing

Avoid shadowing vars() built-in func in modules.openbsdservice._get_rc()
modules.openbsdservice: avoid shadowing outer enabled() func

************* Module salt.modules.openbsdservice
salt/modules/openbsdservice.py:234: [W0621(redefined-outer-name), get_enabled] Redefining name 'enabled' from outer scope (line 240)
salt/modules/openbsdservice.py:268: [W0621(redefined-outer-name), get_disabled] Redefining name 'enabled' from outer scope (line 240)
Merge pull request #11687 from hulu/enabled-shadowing

modules.openbsdservice: avoid shadowing outer enabled() func
can't fix these without changing API
Merge branch 'develop' into with-pylint-pragmas