apigen:c++: fix ruby callback as lambda