VPP-1102: fix dangling references in RPC handling