pothos-gui: sharedptr to cleanup block after render