Make gallery flushing async with boot

Change-Id: Idea8edcc37abc906255f75fa1ab9d8f195ca6727