erp5_base: recalculate user group after closing the assignment

If user group are recalculated before changing the workflow state, it will only return the same security group
See nexedi/erp5@c00c3636
20 jobs for wip in 0 seconds (queued for 1 second)
Status Job ID Name Coverage
  External
failed ERP5.UnitTest-Romain

00:28:31

failed ERP5.UnitTest-Romain

00:25:01

failed ERP5.UnitTest-Romain

00:30:15

failed ERP5.UnitTest-Romain

00:39:35

failed ERP5.UnitTest-Romain

00:32:47

failed ERP5.UnitTest-Romain

00:28:58

failed ERP5.UnitTest-Romain

00:28:47

failed ERP5.UnitTest-Romain

00:30:46

failed ERP5.UnitTest-Romain

00:29:01

failed ERP5.UnitTest-Romain

00:37:39

failed ERP5.UnitTest-Romain

00:28:04

failed ERP5.UnitTest-Romain

00:28:18

failed ERP5.UnitTest-Romain

00:38:48

failed ERP5.UnitTest-Romain

00:26:37

failed ERP5.UnitTest-Romain

00:22:28

failed ERP5.UnitTest-Romain

00:22:47

failed ERP5.UnitTest-Romain

00:27:36

failed ERP5.UnitTest-Romain

00:24:34

failed ERP5.UnitTest-Romain

01:50:52

failed ERP5.UnitTest-Romain

03:13:02