Rework locking in settings.c module.
Locking mechanism run_exclusive_enter()/exit() works correctly only if
all calls operate on the same task.
Locking was reworked to use ordinary mutex stored in settings_set_t
structure.
Signed-off-by: Petr Spacek <pspacek@redhat.com>