doc: add a chapter about trylock functions [Bug 9011]