Dynamics of metastable vacua in the early universe