fix warning: _BSD_SOURCE is deprecated

_BSD_SOURCE is deprecated since glibc 2.20
tests: disable knot_dname_to_str_alloc() with incomplete dname

Buffer boundaries are checked in knot_dname_wire_check(). The tested
function expects a valid dname. As a result, a memory outside the static
buffer is accessed.