libstd: Inline more methods on bitflags.

Servo really wants this.
auto merge of #18103 : pcwalton/rust/bitflags-inline, r=thestinger

Servo really wants this.

r? @nick29581