buffer: move Buffer::Flags operator as friends defined inside Buffer