removed extra uc_link->main and added ta_lock at end of ta_wait