Use separate Subversion memory pools for each thread + remove caching

Fixes crashes when filesystem extensively.

This is quite ugly code, but I'm not sure where I will find time to
rewrite it.