Fix xlink deadlock issue communication protocol between server and client.