fn worker(shared: &Shared)
Process local work items, stopping every now and then to redistribute items back to global pool. This prevents threads idling or hotspotting.