Poking about with better synchronization for tree rebuilds.
Massaging the rwlock codebase.
Writer-lock now works properly