fails:IO#fcntl raises IOError on closed stream
