[sr-dev] git:4.1: core: xavp: Fix xavp_insert to prevent corrupted linked lists