Move daemon(3) before kqueue(2)

The file descriptor returned by kqueue(2) is not inherited through
fork(2), which is used by daemon(3). For some unknown reason it
worked anyway in 9.1-RELEASE, which allowed the issue to escape
notice.