libfreerdp-core: fix async updates with palettes