Don't let thread B start until A is finished.