Dynamics of capillary condensation in bistable optical superlattices