Upgrade libuv to fix mac deadlock. #6526

This cherry-picks a fix from upstream. It also includes another libuv patch that we were running but was accidentally removed in a submodule update.