[NUI] add checking whether NUI object is created in outside of main thread