Make `RegExp.prototype.flags` more spec-compliant

Note that this still isn’t fully spec-compliant, since it shouldn’t be configurable.
Configurability is not explicitly defined for `RegExp.prototype.flags` so https://people.mozilla.org/~jorendorff/es6-draft.html#table-4 applies.