chsmack: merge modification loops
chsmack: merge modification loops

The two separate loops, one for deleting,
one for setting are now merged in only
one loop.

It prepares implementation of future
options.

Signed-off-by: José Bollo <08496fd66cc394b517cafa0b18bcb9ce79fe4230@iot.bzh>

jobol/smack,smack-team/smack,smack-team/smack,jobol/smack