pkg.installed/latest: don't refresh_db if refresh==False

See https://github.com/saltstack/salt/issues/5733#issuecomment-33888898
for further information.
Merge pull request #10117 from terminalmage/issue5733

pkg.installed/latest: don't refresh_db if refresh==False