Fixed EGL surface not recreated in the right thread