ERP5Workflow: fix adding permissions

Follow up of ff624fd2 (ERP5Workflow: newly added permission should be
acquired for all existing states., 2024-11-04) and cbef6282 (ERP5Workflow:
make sure not create duplicate permissions, 2024-11-05)
12 jobs for for_testrunner_2
in 0 seconds, using 0 compute credits, and was queued for 0 seconds