hotplug2: merge worker related fixes into one patch

git-svn-id: svn://svn.openwrt.org/openwrt@35856 3c298f89-4303-0410-b956-a3cf2f4a3e73
hotplug2: fix a memory leak and wrong variables leaking into the fork worker process (#12436, maybe also #12765)

git-svn-id: svn://svn.openwrt.org/openwrt@35857 3c298f89-4303-0410-b956-a3cf2f4a3e73