fix statistics when running with pdns-distributes-queries. Closes issue #1333.