core/socket: move socket buffer size setting to create_server_socket
core/socket: move listen queue size checking to create_server_socket
core/socket: move SO_REUSEADDR setting to create_server_socket