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

Note that this still isn’t fully spec-compliant, since it shouldn’t be configurable.
What's the purpose of this change? Accessing `.flags` references the getter already, in a way that's not as particularly coupled to the descriptor.