s4:wrepl_server: use SOCKET_FLAG_NOCLOSE instead of a dup()