invariant pr->pending_head <> NULL still getting violated