[backend] do not loop if a prp has a dep onto itself