vm-update: Use post_tasks rather than explicit flush_handlers