gadgetd: do not reuse variable names in subscopes

Change-Id: I2af79b7e3c2ba53328a5dfb246ea8968dee2e3a8
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>