Fix IO#initialize_copy to flush the right stream.
EBADF if we get to waitReadable with a closed stream.

test:rubicon is 100% now.
Minor cleanup.