Real fix for avahi (native and compat) w/ multiple threads

1. Ok, will do
2. Tests worked without, maybe they are needed. I'll add them