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

Note that this still isn’t fully spec-compliant, since it shouldn’t be configurable.
Where in the spec does it specify the configurability? I had a discussion with @awbjs that seemed to suggest that TC39 doesn't make anything nonconfigurable.