Use the new SchemaTree everywhere

The number of bugs is reduced but still not 0. At least, now everything is
thread safe.

But it looks like a cache match is there which should not be...

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>