socket_embed_hook() should return immediately if spi_global_register is NULL