Ensure that the known interfaces for TpProtocol have been set up.
This is done automatically when necessary, but for correct overriding of library interfaces by local extensions, you should call this
function before calling tp_proxy_or_subclass_hook_on_interface_add
with first argument TP_TYPE_PROTOCOL
.