[UCC] Properly finalize unsuccessful collective posts (#89306)
This PR add a `ucc_collective_finalize` call if `ucc_collective_post` and `ucc_collective_triggered_post` were not successful.
According to the [UCC documentation](https://openucx.github.io/ucc/api/v1.1/html/group___u_c_c___c_o_l_l_e_c_t_i_v_e_s.html):
```
On error, request handle becomes invalid, user is responsible to call ucc_collective_finalize to free allocated resources.
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89306
Approved by: https://github.com/kwen2501