server: add alloc_sock to init socket objects