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()
and removed executable permissions from sockets.

PS. This is proper version of #10442
Merge pull request #10571 from SaveTheRbtz/security

security: remove race between bind(2) and chmod(2)