spin lock and synchronizing the hand over