Introduce makeUNsockaddr and have everybody use it

makeUNsockaddr does the length check in a central place, and calling
code should be a bit more readable now.