fails:IO#sync= sets the sync mode to true or false
fails:IO#sync= accepts non-boolean arguments
fails:IO#sync= raises an IOError on closed stream
fails:IO#sync returns the current sync mode
fails:IO#sync raises an IOError on closed stream
