PeriodicTask: allow periodic task to be destroyed from callback

Fixes #21631

Change-Id: Idb6d02624fcd4c7772d18e80078c72164dc85d0b
Reviewed-on: http://gerrit.aldebaran.lan/38884
Reviewed-by: pdaouadi <pdaouadi@aldebaran-robotics.com>
Tested-by: pdaouadi <pdaouadi@aldebaran-robotics.com>
Add inline argument for FutureSync

Change-Id: Ic29251ad5cca3b438c1b3a9fa257d647406830c0
Reviewed-on: http://gerrit.aldebaran.lan/39248
Reviewed-by: pdaouadi <pdaouadi@aldebaran-robotics.com>
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Reviewed-by: hcuche <hcuche@aldebaran-robotics.com>
Tested-by: hcuche <hcuche@aldebaran-robotics.com>
Remove warnings when compiling in release

Change-Id: I3bf7d2dd9b260effaf2dbb07fd56a2fe1bc9be6b
Reviewed-on: http://gerrit.aldebaran.lan/39325
Reviewed-by: pdaouadi <pdaouadi@aldebaran-robotics.com>
Tested-by: ncornu <ncornu@aldebaran-robotics.com>
Merge commit 'refs/integration/team/platform/dev-49'