libfreerdp-core: add method to flush server-side updates