Try to lock until success