With some more fooling around, I have also managed to get this elog(WARNING)
if (proc->lwWaitLink == NULL) elog(WARNING, "could not locate ourselves on wait queue");
-- fdr