Fix crashes with io-threads-do-reads enabled. (#8230)
Fix crashes with io-threads-do-reads enabled. (#8230)

Normally IO threads should simply read data from the socket into the
buffer and attempt to parse it.

If a protocol error is detected, a reply is generated which may result
with installing a write handler which is not thread safe. This fix
delays that until the client is processed back in the main thread.

Fixes #8220
charsyam/redis,charsyam/redis,ofirluzon/redis,antirez/redis,PKRoma/redis,soloestoy/redis,soloestoy/redis,soloestoy/redis,soloestoy/redis,PKRoma/redis,PKRoma/redis,ofirluzon/redis,charsyam/redis,ofirluzon/redis,oranagra/redis,yossigo/redis,oranagra/redis,ctripcorp/redis,antirez/redis,oranagra/redis,yossigo/redis,neomantra/redis,PKRoma/redis,yossigo/redis,ofirluzon/redis,antirez/redis,antirez/redis,oranagra/redis,neomantra/redis,ctripcorp/redis,yossigo/redis,yossigo/redis,charsyam/redis,neomantra/redis,neomantra/redis,PKRoma/redis,neomantra/redis,ctripcorp/redis,ctripcorp/redis,soloestoy/redis,oranagra/redis,ofirluzon/redis,charsyam/redis