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

Note that this still isn’t fully spec-compliant, since it shouldn’t be configurable.
Since we've clarified that this accessor should indeed be generic, following the steps is the correct approach. Sorry for the confusion.