Mitigating mode collapse in normalizing flows by annealing with an adaptive schedule: Application to parameter estimation