C++ wrapper: Fix use-after-free issue in List::find_all()