fixed branch on uninit and data race in editor android device polling
fixed branch on uninit and data race in editor android device polling

Initialised relevant variables before stating thread,
to prevent a branch on uninitialised data.
Fixed race condition in polling that could miss a device change.

vkbsb/godot,RandomShaper/godot,sanikoyes/godot,RandomShaper/godot,ZuBsPaCe/godot,Zylann/godot,RandomShaper/godot,ex/godot,Paulloz/godot,DmitriySalnikov/godot,RandomShaper/godot,ZuBsPaCe/godot,mcanders/godot,RandomShaper/godot,honix/godot,Zylann/godot,MarianoGnu/godot,ex/godot,Zylann/godot,okamstudio/godot,Faless/godot,MarianoGnu/godot,RandomShaper/godot,vnen/godot,Faless/godot,ZuBsPaCe/godot,Paulloz/godot,honix/godot,Valentactive/godot,akien-mga/godot,firefly2442/godot,firefly2442/godot,Zylann/godot,pkowal1982/godot,ZuBsPaCe/godot,okamstudio/godot,sanikoyes/godot,firefly2442/godot,ZuBsPaCe/godot,ex/godot,guilhermefelipecgs/godot,Paulloz/godot,Shockblast/godot,DmitriySalnikov/godot,mcanders/godot,godotengine/godot,vnen/godot,DmitriySalnikov/godot,MarianoGnu/godot,RandomShaper/godot,Valentactive/godot,honix/godot,ex/godot,firefly2442/godot,MarianoGnu/godot,Faless/godot,vkbsb/godot,guilhermefelipecgs/godot,godotengine/godot,Shockblast/godot,guilhermefelipecgs/godot,okamstudio/godot,groud/godot,okamstudio/godot,Faless/godot,Shockblast/godot,BastiaanOlij/godot,Paulloz/godot,firefly2442/godot,ex/godot,firefly2442/godot,vnen/godot,vkbsb/godot,josempans/godot,vkbsb/godot,NateWardawg/godot,mcanders/godot,godotengine/godot,BastiaanOlij/godot,pkowal1982/godot,firefly2442/godot,NateWardawg/godot,josempans/godot,pkowal1982/godot,ex/godot,ZuBsPaCe/godot,NateWardawg/godot,godotengine/godot,sanikoyes/godot,pkowal1982/godot,Valentactive/godot,BastiaanOlij/godot,guilhermefelipecgs/godot,sanikoyes/godot,Paulloz/godot,akien-mga/godot,mcanders/godot,okamstudio/godot,sanikoyes/godot,Valentactive/godot,honix/godot,akien-mga/godot,Shockblast/godot,MarianoGnu/godot,Faless/godot,Zylann/godot,Faless/godot,vkbsb/godot,Shockblast/godot,groud/godot,BastiaanOlij/godot,NateWardawg/godot,guilhermefelipecgs/godot,groud/godot,akien-mga/godot,MarianoGnu/godot,okamstudio/godot,godotengine/godot,NateWardawg/godot,ex/godot,Shockblast/godot,ZuBsPaCe/godot,pkowal1982/godot,Valentactive/godot,akien-mga/godot,firefly2442/godot,josempans/godot,Shockblast/godot,Faless/godot,NateWardawg/godot,okamstudio/godot,vkbsb/godot,akien-mga/godot,DmitriySalnikov/godot,groud/godot,sanikoyes/godot,BastiaanOlij/godot,ex/godot,josempans/godot,NateWardawg/godot,vkbsb/godot,josempans/godot,josempans/godot,Shockblast/godot,Valentactive/godot,sanikoyes/godot,BastiaanOlij/godot,DmitriySalnikov/godot,NateWardawg/godot,MarianoGnu/godot,BastiaanOlij/godot,Valentactive/godot,sanikoyes/godot,ZuBsPaCe/godot,guilhermefelipecgs/godot,vkbsb/godot,Paulloz/godot,mcanders/godot,groud/godot,godotengine/godot,guilhermefelipecgs/godot,okamstudio/godot,DmitriySalnikov/godot,okamstudio/godot,Zylann/godot,pkowal1982/godot,okamstudio/godot,honix/godot,BastiaanOlij/godot,honix/godot,NateWardawg/godot,pkowal1982/godot,Paulloz/godot,guilhermefelipecgs/godot,vnen/godot,mcanders/godot,vnen/godot,Valentactive/godot,vnen/godot,Zylann/godot,josempans/godot,godotengine/godot,vnen/godot,MarianoGnu/godot,groud/godot,godotengine/godot,akien-mga/godot,Faless/godot,pkowal1982/godot,akien-mga/godot,vnen/godot,DmitriySalnikov/godot,Zylann/godot,josempans/godot