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()