fix race condition for tray ws connection
fix race condition for tray ws connection

Signed-off-by: Vikram Yadav <405c9c469a6deb8bcecb9e7f5ababe52b8e8e832@vmware.com>

vmware/octant,vmware/octant,vmware/octant,vmware/octant,vmware/octant