gitlab-rulez: Fix missing settings while applying changes
Task: https://phabricator.apertis.org/T8029
The apply_changes() function creates lambda functions with a closure over free variables bound at runtime in a loop. Thus, all the Actions are setting the same attribute.
Fix this by assigning the free variables at definition time.