[ruby-core:123761] [Ruby Bug#21672] `IO::Buffer.new` does not check that flags are valid