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, using 0 compute credits, and was queued for 1 second