test-prio-queue: use xmalloc