fixed several concurrency bugs with the AssemblyLine class (need to
improve test cases)