Fix some cases in unix socket creation.