add DEBUGs when dnscache and stats threads are started and stopped
fix dnscache purge thread logic