- Fixes a situation in which a thread gets BF aborted and does not send the reply back to
the client, even though the connection is still alive. That caused
both sides to hang waiting for the next message. Now we explicitly
check that the connection is still alive when deciding whether to reply.
- MTR test for the above.
- Replaced thd->killed assignments to thd->reset_kill_query where applicable.