Fix trylock.