Avoid the class name check in is_async_state_machine_class (), csc seems to generate a different name. Fixes #12329.