Add init() function for functor-based actors
Fix possible invalid write in intrusive_ptr