PetersonLock for 2 threads added.