chg: do not release semaphore 0 while waiting for links