server: Split out code to initialize the socket address for a display name

We'll use this to autodetect a good socket to open on.
server: Make get_socket_lock operate directly on the socket's lock_fd
server: Add a simple API to find a good default display

This allows compositors to easily select a good display to listen on.