only remap textures on the render thread, fix deadlock, and improve handling of changes to textures