confusion about locking [ Pls help ]