WICKET-5655 clear FLAG_INHERITABLE_MODEL reliably