Fixed deadlock while ensuring a predecessor list.