Fix RenderTarget creation if called from non UI thread

Reloading resources after resume on Android (and probably other GL platforms with device reset on resume) could cause rendertargets to turn black (invalid). This simple change should fix that.