Fix sync problem in CacheManagingDrawTask