Properly update overlays in multithread environment