Dig: do not hang on TLS context creation errors (Resolve #3285)
There was a query_detach() call missing in dig, which could lead to dig hanging on TLS context creation errors. This commit fixes.
The error was introduced because the Strict TLS implementation was initially made over an older version of the code, where this extra query_detach() call was not needed.
Closes #3285 (closed)