Kfsio library: fix ssl filter shutdown initiation by handling possible socket io retry ssl state. The change, in theory, should not have effect on shutdown completion, as shutdown completion communicated to the upper network connection layer with "read end of stream" at the time when shutdown has already successfully completed, and no io retries should be required.