[9.18] Handle ISC_R_INVALIDPROTO in the dispatch
there was no isc_result_t value for invalid protocol errors that could be returned from libuv.
(cherry picked from commit 0393b54a)
Closes #4005 (closed)
Backport of !7860 (merged)
Edited by Ondřej Surý