zend_resolve_const_class_name_reference()
This is a follow-up to #15990, as it turns out there was a second place that emits this kind of error message.
Throw a compile error for "static" references instead, where it isn't already the case. Also extract the code that does that -- we have quite a few places where we get a const class ref and require it to be default.