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
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

01:45:18

passed ERP5.CodingStyleTest-TestRunner2

01:52:54

failed ERP5.PerformanceTest-Master

00:35:20

failed ERP5.UnitTest-Master

03:57:21

passed ERP5.UnitTest-TestRunner2

02:39:54

passed SlapOS.Eggs.UnitTest-Master.Python2

00:26:31

passed SlapOS.Eggs.UnitTest-Master.Python3

00:24:33

passed Wendelin.UnitTest-Master

00:50:55

passed ERP5.CodingStyleTest-TestRunner2

01:02:51

passed ERP5.CodingStyleTest-TestRunner2

02:27:00

passed ERP5.UnitTest-TestRunner2

02:03:51

failed ERP5.UnitTest-TestRunner2

04:18:33