use Lock and Condition to test PC.

Signed-off-by: Flycoding <Flycoding@yeah.net>
test CyclicBarrier.

Signed-off-by: Flycoding <Flycoding@yeah.net>