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
2 jobs for wip in 0 seconds (queued for 1 second)
Status Job ID Name Coverage
  External
failed ERP5.UnitTest-Romain

00:31:41

failed ERP5.UnitTest-Romain

00:29:23