Add const to parameters of DHT callback.

This is an incompatible API change.
Consult local storage when performing a search.

The likelihood of this triggerring in a fully grown DHT is vanishingly
small, but people are running modified versions of this code in
private DHTs.