It will be fine. Few times I did IAD-ZRH-DXB UA/LX with 6-7 hours connection time in Zurich. Never had to pick up the bags and they always arrived in Dubai on the same flight. So you should be ok. Even on my last flight Thai to LX BKK-ZRH-IAD we had around 5 hours connecting time. No problems with the bags.