The UpcallInfo constructor should take const shared_ptr ref.