Use salt.utils.get_hash also in local client

Closes #14784.
Merge pull request #15247 from saltstack/bp-14882

Backport #14882 to 2014.7