Currently any directives inside the associated statement of the metadirective would be parsed as a metadirective and fail. This change just resets the variable before the associated statement is parsed.
It's not clear to me why ReadDirectiveWithinMetadirective is a static instead of a default parameter to ParseOpenMPDeclarativeOrExecutableDirective. That seems to work too if we like it better.