Constrained variational procedure for the calculation of autoionization lifetimes