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

Note that this still isn’t fully spec-compliant, since it shouldn’t be configurable.
How does `testGenericRegExpFlags` act any differently than `RegExp.prototype.flags.call`? That's literally all it's doing.