Add trylock functions.