Add a umask wrapper to the creation of sockets

This makes is easy to set the creation umask for the socket file to
ensure that the correct filesystem permissions are set per the given
application