avoid shadowing in dig module
Merge pull request #10560 from hulu/dig-shadowing

avoid shadowing in dig module
security: remove race between bind(2) and chmod(2)

This adds umask(2) calls before and after zmq_bind(3) calls.
Also while here check sockets with salt.utils.check_ipc_path_max_len()