Avoid static initializer fiasco while collecting rpc hooks.