Use std::unique_ptr to manage MCBasicBlocks in MCFunction.