Better knot_zonedb_find_zone_for_name() implementation.

Previous with full dname copy and chopping was really inefficient.
Yields approx. 20% lower relative cost, 6% throughput increase.

Change-Id: Icaa49572f75769739ae61f48d2ca958e38db6104