libfreerdp-core: fix some async updates race conditions