Thread safe implementation part I
Thread safe implementation Part II
Update lock position