fix(ocaml-tls): fix drain_handshake on Read_closed/Write_closed states
Port upstream fix: drain_handshake now returns immediately when in
Read_closed or Write_closed state (not just Active) as long as the
handshake is not in progress. Also fix test_eio_epoch to call epoch
before shutdown to avoid the race.