tries to acquire a lock if there is an update