Fix ContextIO::Message#set_flags method