Use salt.utils.get_hash also in local client

Closes #14784.