Move more out of the feeder threads and into the worker threads.

Many things are likely broken at the moment...
Fixed thread synchronization at way / relation boundary
Fixed thread synchronisation at the switch between ways and relations